<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupGLProgressBar</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	font-size: large;
}
</style>
</head>
<body>
<div id="navigation">
  <ul>
    <li><a href="#Creation">Creation</a></li>
    <li><a href="#Attributes">Attributes</a></li>
    <li><a href="#Callbacks">Callbacks</a></li>
    <li><a href="#Notes">Notes</a></li>
    <li><a href="#Examples">Examples</a></li>
    <li><a href="#SeeAlso">See Also</a></li>
  </ul>
</div>

<h2>IupGLProgressBar<span class="style1"> (since 3.11)</span></h2>
<p>Creates an embedded OpenGL progress bar control. Shows a percent value that can be updated to 
simulate a progression. It inherits from <a href="iupglsubcanvas.html">IupGLSubCanvas</a>. 
It exists only inside an
<a href="iupglcanvasbox.html">IupGLCanvasBox</a>.</p>
<h3><a name="Creation">Creation</a></h3>

<pre>Ihandle* IupGLProgressBar(void); [in C]
iup.glprogressbar{} -&gt; (<strong>elem</strong>: ihandle) [in Lua]
glprogressbar() [in LED] </pre>
  <p>
  <u>Returns:</u> the identifier of the 
  created element, or NULL if an error occurs.</p>

<h3><a name="Attributes">Attributes</a></h3>


<p>The 
  <strong>IupGLProgressBar</strong> element handle all attributes defined for a
<a href="iupglsubcanvas.html">IupGLSubCanvas</a> control.</p>
<blockquote>
  <hr>
</blockquote>


  <p><strong>BACKIMAGE</strong> (<font SIZE="3">non inheritable</font>):
  image name to be used as background.&nbsp; It will be zoomed to fill the 
  background (it does not includes the border). Use
	<a href="../func/iupsethandle.html">IupSetHandle</a> or
	<a href="../func/iupsetattributehandle.html">IupSetAttributeHandle</a> to 
	associate an image to a name. See also
	<a href="../elem/iupimage.html">IupImage</a>. (since 3.11.2)</p>
<p><strong>BACKIMAGEHIGHLIGHT</strong> (<font SIZE="3">non inheritable</font>): 
background image name of the element in highlight state. If it is not defined 
then the BACKIMAGE is used. (since 3.11.2)</p>
  <p><strong>BACKIMAGEINACTIVE</strong> (<font SIZE="3">non inheritable</font>): 
  background image name of the element when inactive. If it is not defined then the 
  BACKIMAGE 
  is used and its colors will be replaced by a modified version creating the 
  disabled effect. (since 3.11.2)</p>

  
<p><strong>BACKIMAGEPRESS </strong>(<font size="3">non inheritable</font>): 
background image 
name of the element in pressed state. If it is not defined then the BACKIMAGE is 
used.(since 3.11.2)</p>


<p><a href="../attrib/iup_fgcolor.html">FGCOLOR</a>: Controls the bar color. Can 
have an alpha component. Default: &quot;200 225 245&quot;.</p>
<p><strong>FITTOBACKIMAGE</strong> (<font size="3">non inheritable</font>): 
enable the natural size to be computed from the BACKIMAGE. If BACKIMAGE is not 
defined will be ignored. When set to Yes it will set BORDERWIDTH to 0. Can be 
Yes or No. Default: No.&nbsp; (since 3.11.2)</p>
<p><strong>MAX </strong>(<font size="3">non inheritable</font>): Contains the 
maximum value. Default is &quot;1&quot;. </p>


<p><strong>MIN </strong>(<font size="3">non inheritable</font>): Contains the 
minimum value. Default is &quot;0&quot;. </p>
<p><strong>ORIENTATION</strong>: can be &quot;VERTICAL&quot; or 
&quot;HORIZONTAL&quot;. Default: &quot;HORIZONTAL&quot;. Horizontal goes from left to right, and 
vertical from bottom to top.</p>
  <p><b>PADDING</b>: internal margin. Default value: &quot;0x0&quot;.</p>


  <p><strong>CPADDING</strong>: same as PADDING but using the units of the <strong>
	SIZE</strong> attribute. It will actually set the PADDING attribute. (since 
  3.29)</p>


  <p><strong>SHOWTEXT</strong>:
  Indicates if the text inside the bar is to 
  be shown or not. Possible values: &quot;YES&quot; or &quot;NO&quot;. Default: 
    &quot;YES&quot;.</p>
<p><strong>TEXT </strong>(<font SIZE="3">non inheritable</font>):
  Contains a text to be shown inside the 
  bar when SHOW_TEXT=YES. If it is NULL, the percentage calculated from VALUE 
will be used.</p>
<p><strong>TXTCOLOR</strong>: Text color. Can have an alpha component. Default: 
&quot;0 0 0&quot;.</p>
<p><strong>VALUE </strong>(<font size="3">non inheritable</font>):
  Contains a number between &quot;MIN&quot; and &quot;MAX&quot;, controlling the 
current position.</p>

  

<h3><a name="Notes">Notes</a></h3>


<p>The natural size is the height of one character in one direction and the 
width of 15 characters in the other, plus PADDING and BORDERWIDTH.</p>


</body>

</html>
